package com.tmpt.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PaginationDto<T> implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private int pageNo = 0;//页号
	private int pageSize = 0;//每页有多少记录数
	private int totalPageCount = 0;//共有多少页数
	private long totalRecordCount = 0;//总记录数
	private boolean hasPreviousPage = false;
	private boolean hasNextPage = false;
	private boolean hasEndPage = false;
	private int nextPageNo=0;
	private int previousPageNo=0;
	private int endPageNo=0;
	private List<T> recordList = new ArrayList<T>();
	//页面显示的分页列表
	private List<Integer> pageList = new ArrayList<Integer>();
	//页面显示的每页记录数列表
	private List<Integer> pageSizeList = new ArrayList<Integer>();
	
	private Map<String, String> sumData = new HashMap<String, String>();
	
	public int getPageNo() {
		return pageNo;
	}
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public List<T> getRecordList() {
		return recordList;
	}
	public void setRecordList(List<T> recordList) {
		this.recordList = recordList;
	}
	public boolean isHasNextPage() {
		return hasNextPage;
	}
	public void setHasNextPage(boolean hasNextPage) {
		this.hasNextPage = hasNextPage;
	}
	public boolean isHasPreviousPage() {
		return hasPreviousPage;
	}
	public void setHasPreviousPage(boolean hasPreviousPage) {
		this.hasPreviousPage = hasPreviousPage;
	}
	public int getTotalPageCount() {
		return totalPageCount;
	}
	public void setTotalPageCount(int totalPageCount) {
		this.totalPageCount = totalPageCount;
	}
	public long getTotalRecordCount() {
		return totalRecordCount;
	}
	public void setTotalRecordCount(long totalRecordCount) {
		this.totalRecordCount = totalRecordCount;
	}
	public int getNextPageNo() {
		return nextPageNo;
	}
	public void setNextPageNo(int nextPageNo) {
		this.nextPageNo = nextPageNo;
	}
	public int getPreviousPageNo() {
		return previousPageNo;
	}
	public void setPreviousPageNo(int previousPageNo) {
		this.previousPageNo = previousPageNo;
	}
	public boolean isHasEndPage() {
		return hasEndPage;
	}
	public void setHasEndPage(boolean hasEndPage) {
		this.hasEndPage = hasEndPage;
	}
	public int getEndPageNo() {
		return endPageNo;
	}
	public void setEndPageNo(int endPageNo) {
		this.endPageNo = endPageNo;
	}
	public List<Integer> getPageList() {
		return pageList;
	}
	public void setPageList(List<Integer> pageList) {
		this.pageList = pageList;
	}
	public List<Integer> getPageSizeList() {
		return pageSizeList;
	}
	public void setPageSizeList(List<Integer> pageSizeList) {
		this.pageSizeList = pageSizeList;
	}
	public Map<String, String> getSumData() {
		return sumData;
	}
	public void setSumData(Map<String, String> sumData) {
		this.sumData = sumData;
	}
	
}
